package com.buba.system.service.impl;

import com.buba.system.pojo.SystemUser;
import com.buba.system.pojo.SystemUserRole;
import com.buba.system.service.RoleService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Set;

@Service("roleServiceImpl")
public class RoleServiceImpl implements RoleService{
    @DubboReference //@Reference 用在消费端，表明使用的是服务端的什么服务
    private RoleService roleService;


    @Override
    public Set<SystemUserRole> selRoleByName(SystemUser systemUser) {
        return roleService.selRoleByName(systemUser);
    }




}
